package com.enjoy.rpc.controller;

import com.enjoy.rpc.remote.SendSms;
import com.enjoy.rpc.remote.vo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SmsController {

    @Autowired
    private SendSms sendSms;

    @RequestMapping("sendSms")
    public String sendSms(){
        UserInfo userInfo = new UserInfo("lili","dhskjahl");
        sendSms.sendMail(userInfo);
        return "success";
    }
}
